package com.woniu.easyuidemo.service;


import com.woniu.easyuidemo.bean.Emp;
import com.woniu.easyuidemo.dao.EmpMapper;
import com.woniu.easyuidemo.vo.EmpVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EmpService implements EmpMapper {
    @Resource
    private EmpMapper empMapper;

    @Override
    public int deleteByPrimaryKey(Integer empno) {
        return 0;
    }

    @Override
    public int insert(Emp record) {
        return 0;
    }

    @Override
    public int insertSelective(Emp record) {
        return 0;
    }

    @Override
    public Emp selectByPrimaryKey(Integer empno) {
        return empMapper.selectByPrimaryKey(empno);
    }

    @Override
    public int updateByPrimaryKeySelective(Emp record) {
        return empMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Emp record) {
        return 0;
    }

    @Override
    public List<Emp> listEmps(Integer currentPage, Integer pageSize, EmpVo vo) {
        return empMapper.listEmps(currentPage,pageSize,vo);
    }
}
